3.1.61 \(\int \frac {\text {arctanh}(d+e x)}{a+b x+c x^2} \, dx\) [61]

3.1.61.1 Optimal result
3.1.61.2 Mathematica [A] (verified)
3.1.61.3 Rubi [A] (verified)
3.1.61.4 Maple [B] (verified)
3.1.61.5 Fricas [F]
3.1.61.6 Sympy [F(-1)]
3.1.61.7 Maxima [F(-2)]
3.1.61.8 Giac [F]
3.1.61.9 Mupad [F(-1)]

3.1.61.1 Optimal result

Integrand size = 19, antiderivative size = 335 \[ \int \frac {\text {arctanh}(d+e x)}{a+b x+c x^2} \, dx=\frac {\text {arctanh}(d+e x) \log \left (\frac {2 e \left (b-\sqrt {b^2-4 a c}+2 c x\right )}{\left (2 c (1-d)+\left (b-\sqrt {b^2-4 a c}\right ) e\right ) (1+d+e x)}\right )}{\sqrt {b^2-4 a c}}-\frac {\text {arctanh}(d+e x) \log \left (\frac {2 e \left (b+\sqrt {b^2-4 a c}+2 c x\right )}{\left (2 c (1-d)+\left (b+\sqrt {b^2-4 a c}\right ) e\right ) (1+d+e x)}\right )}{\sqrt {b^2-4 a c}}-\frac {\operatorname {PolyLog}\left (2,1+\frac {2 \left (2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e-2 c (d+e x)\right )}{\left (2 c-2 c d+b e-\sqrt {b^2-4 a c} e\right ) (1+d+e x)}\right )}{2 \sqrt {b^2-4 a c}}+\frac {\operatorname {PolyLog}\left (2,1+\frac {2 \left (2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e-2 c (d+e x)\right )}{\left (2 c (1-d)+\left (b+\sqrt {b^2-4 a c}\right ) e\right ) (1+d+e x)}\right )}{2 \sqrt {b^2-4 a c}} \]

output
arctanh(e*x+d)*ln(2*e*(b+2*c*x-(-4*a*c+b^2)^(1/2))/(e*x+d+1)/(2*c*(1-d)+e* 
(b-(-4*a*c+b^2)^(1/2))))/(-4*a*c+b^2)^(1/2)-arctanh(e*x+d)*ln(2*e*(b+2*c*x 
+(-4*a*c+b^2)^(1/2))/(e*x+d+1)/(2*c*(1-d)+e*(b+(-4*a*c+b^2)^(1/2))))/(-4*a 
*c+b^2)^(1/2)-1/2*polylog(2,1+2*(2*c*d-2*c*(e*x+d)-e*(b-(-4*a*c+b^2)^(1/2) 
))/(e*x+d+1)/(2*c-2*c*d+b*e-e*(-4*a*c+b^2)^(1/2)))/(-4*a*c+b^2)^(1/2)+1/2* 
polylog(2,1+2*(2*c*d-2*c*(e*x+d)-e*(b+(-4*a*c+b^2)^(1/2)))/(e*x+d+1)/(2*c* 
(1-d)+e*(b+(-4*a*c+b^2)^(1/2))))/(-4*a*c+b^2)^(1/2)
 
3.1.61.2 Mathematica [A] (verified)

Time = 0.36 (sec) , antiderivative size = 403, normalized size of antiderivative = 1.20 \[ \int \frac {\text {arctanh}(d+e x)}{a+b x+c x^2} \, dx=\frac {-\log \left (\frac {e \left (-b+\sqrt {b^2-4 a c}-2 c x\right )}{2 c (-1+d)+\left (-b+\sqrt {b^2-4 a c}\right ) e}\right ) \log (1-d-e x)+\log \left (\frac {e \left (b+\sqrt {b^2-4 a c}+2 c x\right )}{-2 c (-1+d)+\left (b+\sqrt {b^2-4 a c}\right ) e}\right ) \log (1-d-e x)+\log \left (\frac {e \left (-b+\sqrt {b^2-4 a c}-2 c x\right )}{2 c (1+d)+\left (-b+\sqrt {b^2-4 a c}\right ) e}\right ) \log (1+d+e x)-\log \left (\frac {e \left (b+\sqrt {b^2-4 a c}+2 c x\right )}{-2 c (1+d)+\left (b+\sqrt {b^2-4 a c}\right ) e}\right ) \log (1+d+e x)-\operatorname {PolyLog}\left (2,\frac {2 c (-1+d+e x)}{2 c (-1+d)+\left (-b+\sqrt {b^2-4 a c}\right ) e}\right )+\operatorname {PolyLog}\left (2,\frac {2 c (-1+d+e x)}{2 c (-1+d)-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )+\operatorname {PolyLog}\left (2,\frac {2 c (1+d+e x)}{2 c (1+d)+\left (-b+\sqrt {b^2-4 a c}\right ) e}\right )-\operatorname {PolyLog}\left (2,\frac {2 c (1+d+e x)}{2 c (1+d)-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{2 \sqrt {b^2-4 a c}} \]

input
Integrate[ArcTanh[d + e*x]/(a + b*x + c*x^2),x]
 
output
(-(Log[(e*(-b + Sqrt[b^2 - 4*a*c] - 2*c*x))/(2*c*(-1 + d) + (-b + Sqrt[b^2 
 - 4*a*c])*e)]*Log[1 - d - e*x]) + Log[(e*(b + Sqrt[b^2 - 4*a*c] + 2*c*x)) 
/(-2*c*(-1 + d) + (b + Sqrt[b^2 - 4*a*c])*e)]*Log[1 - d - e*x] + Log[(e*(- 
b + Sqrt[b^2 - 4*a*c] - 2*c*x))/(2*c*(1 + d) + (-b + Sqrt[b^2 - 4*a*c])*e) 
]*Log[1 + d + e*x] - Log[(e*(b + Sqrt[b^2 - 4*a*c] + 2*c*x))/(-2*c*(1 + d) 
 + (b + Sqrt[b^2 - 4*a*c])*e)]*Log[1 + d + e*x] - PolyLog[2, (2*c*(-1 + d 
+ e*x))/(2*c*(-1 + d) + (-b + Sqrt[b^2 - 4*a*c])*e)] + PolyLog[2, (2*c*(-1 
 + d + e*x))/(2*c*(-1 + d) - (b + Sqrt[b^2 - 4*a*c])*e)] + PolyLog[2, (2*c 
*(1 + d + e*x))/(2*c*(1 + d) + (-b + Sqrt[b^2 - 4*a*c])*e)] - PolyLog[2, ( 
2*c*(1 + d + e*x))/(2*c*(1 + d) - (b + Sqrt[b^2 - 4*a*c])*e)])/(2*Sqrt[b^2 
 - 4*a*c])
 
3.1.61.3 Rubi [A] (verified)

Time = 1.05 (sec) , antiderivative size = 356, normalized size of antiderivative = 1.06, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {7279, 2009}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {\text {arctanh}(d+e x)}{a+b x+c x^2} \, dx\)

\(\Big \downarrow \) 7279

\(\displaystyle \int \left (\frac {2 c \text {arctanh}(d+e x)}{\sqrt {b^2-4 a c} \left (-\sqrt {b^2-4 a c}+b+2 c x\right )}-\frac {2 c \text {arctanh}(d+e x)}{\sqrt {b^2-4 a c} \left (\sqrt {b^2-4 a c}+b+2 c x\right )}\right )dx\)

\(\Big \downarrow \) 2009

\(\displaystyle \frac {\text {arctanh}(d+e x) \log \left (-\frac {2 \left (-e \left (b-\sqrt {b^2-4 a c}\right )-2 c (d+e x)+2 c d\right )}{(d+e x+1) \left (-e \sqrt {b^2-4 a c}+b e-2 c d+2 c\right )}\right )}{\sqrt {b^2-4 a c}}-\frac {\text {arctanh}(d+e x) \log \left (-\frac {2 \left (-e \left (\sqrt {b^2-4 a c}+b\right )-2 c (d+e x)+2 c d\right )}{(d+e x+1) \left (e \left (\sqrt {b^2-4 a c}+b\right )+2 c (1-d)\right )}\right )}{\sqrt {b^2-4 a c}}-\frac {\operatorname {PolyLog}\left (2,\frac {2 \left (2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e-2 c (d+e x)\right )}{\left (-2 d c+2 c+b e-\sqrt {b^2-4 a c} e\right ) (d+e x+1)}+1\right )}{2 \sqrt {b^2-4 a c}}+\frac {\operatorname {PolyLog}\left (2,\frac {2 \left (2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e-2 c (d+e x)\right )}{\left (2 c (1-d)+\left (b+\sqrt {b^2-4 a c}\right ) e\right ) (d+e x+1)}+1\right )}{2 \sqrt {b^2-4 a c}}\)

input
Int[ArcTanh[d + e*x]/(a + b*x + c*x^2),x]
 
output
(ArcTanh[d + e*x]*Log[(-2*(2*c*d - (b - Sqrt[b^2 - 4*a*c])*e - 2*c*(d + e* 
x)))/((2*c - 2*c*d + b*e - Sqrt[b^2 - 4*a*c]*e)*(1 + d + e*x))])/Sqrt[b^2 
- 4*a*c] - (ArcTanh[d + e*x]*Log[(-2*(2*c*d - (b + Sqrt[b^2 - 4*a*c])*e - 
2*c*(d + e*x)))/((2*c*(1 - d) + (b + Sqrt[b^2 - 4*a*c])*e)*(1 + d + e*x))] 
)/Sqrt[b^2 - 4*a*c] - PolyLog[2, 1 + (2*(2*c*d - (b - Sqrt[b^2 - 4*a*c])*e 
 - 2*c*(d + e*x)))/((2*c - 2*c*d + b*e - Sqrt[b^2 - 4*a*c]*e)*(1 + d + e*x 
))]/(2*Sqrt[b^2 - 4*a*c]) + PolyLog[2, 1 + (2*(2*c*d - (b + Sqrt[b^2 - 4*a 
*c])*e - 2*c*(d + e*x)))/((2*c*(1 - d) + (b + Sqrt[b^2 - 4*a*c])*e)*(1 + d 
 + e*x))]/(2*Sqrt[b^2 - 4*a*c])
 

3.1.61.3.1 Defintions of rubi rules used

rule 2009
Int[u_, x_Symbol] :> Simp[IntSum[u, x], x] /; SumQ[u]
 

rule 7279
Int[(u_)/((a_.) + (b_.)*(x_)^(n_.) + (c_.)*(x_)^(n2_.)), x_Symbol] :> With[ 
{v = RationalFunctionExpand[u/(a + b*x^n + c*x^(2*n)), x]}, Int[v, x] /; Su 
mQ[v]] /; FreeQ[{a, b, c}, x] && EqQ[n2, 2*n] && IGtQ[n, 0]
 
3.1.61.4 Maple [B] (verified)

Leaf count of result is larger than twice the leaf count of optimal. \(767\) vs. \(2(307)=614\).

Time = 0.69 (sec) , antiderivative size = 768, normalized size of antiderivative = 2.29

method result size
risch \(\frac {e \ln \left (-e x -d +1\right ) \ln \left (\frac {-2 \left (-e x -d +1\right ) c +b e -2 c d +\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}+2 c}{b e -2 c d +2 c +\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}\right )}{2 \sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}-\frac {e \ln \left (-e x -d +1\right ) \ln \left (\frac {2 \left (-e x -d +1\right ) c -b e +2 c d +\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}-2 c}{-b e +2 c d +\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}-2 c}\right )}{2 \sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}+\frac {e \operatorname {dilog}\left (\frac {-2 \left (-e x -d +1\right ) c +b e -2 c d +\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}+2 c}{b e -2 c d +2 c +\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}\right )}{2 \sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}-\frac {e \operatorname {dilog}\left (\frac {2 \left (-e x -d +1\right ) c -b e +2 c d +\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}-2 c}{-b e +2 c d +\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}-2 c}\right )}{2 \sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}+\frac {e \ln \left (e x +d +1\right ) \ln \left (\frac {-2 \left (e x +d +1\right ) c -b e +2 c d +\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}+2 c}{-b e +2 c d +2 c +\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}\right )}{2 \sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}-\frac {e \ln \left (e x +d +1\right ) \ln \left (\frac {2 \left (e x +d +1\right ) c +b e -2 c d +\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}-2 c}{b e -2 c d +\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}-2 c}\right )}{2 \sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}+\frac {e \operatorname {dilog}\left (\frac {-2 \left (e x +d +1\right ) c -b e +2 c d +\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}+2 c}{-b e +2 c d +2 c +\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}\right )}{2 \sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}-\frac {e \operatorname {dilog}\left (\frac {2 \left (e x +d +1\right ) c +b e -2 c d +\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}-2 c}{b e -2 c d +\sqrt {-4 a c \,e^{2}+b^{2} e^{2}}-2 c}\right )}{2 \sqrt {-4 a c \,e^{2}+b^{2} e^{2}}}\) \(768\)
derivativedivides \(\text {Expression too large to display}\) \(2132\)
default \(\text {Expression too large to display}\) \(2132\)

input
int(arctanh(e*x+d)/(c*x^2+b*x+a),x,method=_RETURNVERBOSE)
 
output
1/2*e*ln(-e*x-d+1)/(-4*a*c*e^2+b^2*e^2)^(1/2)*ln((-2*(-e*x-d+1)*c+b*e-2*c* 
d+(-4*a*c*e^2+b^2*e^2)^(1/2)+2*c)/(b*e-2*c*d+2*c+(-4*a*c*e^2+b^2*e^2)^(1/2 
)))-1/2*e*ln(-e*x-d+1)/(-4*a*c*e^2+b^2*e^2)^(1/2)*ln((2*(-e*x-d+1)*c-b*e+2 
*c*d+(-4*a*c*e^2+b^2*e^2)^(1/2)-2*c)/(-b*e+2*c*d+(-4*a*c*e^2+b^2*e^2)^(1/2 
)-2*c))+1/2*e/(-4*a*c*e^2+b^2*e^2)^(1/2)*dilog((-2*(-e*x-d+1)*c+b*e-2*c*d+ 
(-4*a*c*e^2+b^2*e^2)^(1/2)+2*c)/(b*e-2*c*d+2*c+(-4*a*c*e^2+b^2*e^2)^(1/2)) 
)-1/2*e/(-4*a*c*e^2+b^2*e^2)^(1/2)*dilog((2*(-e*x-d+1)*c-b*e+2*c*d+(-4*a*c 
*e^2+b^2*e^2)^(1/2)-2*c)/(-b*e+2*c*d+(-4*a*c*e^2+b^2*e^2)^(1/2)-2*c))+1/2* 
e*ln(e*x+d+1)/(-4*a*c*e^2+b^2*e^2)^(1/2)*ln((-2*(e*x+d+1)*c-b*e+2*c*d+(-4* 
a*c*e^2+b^2*e^2)^(1/2)+2*c)/(-b*e+2*c*d+2*c+(-4*a*c*e^2+b^2*e^2)^(1/2)))-1 
/2*e*ln(e*x+d+1)/(-4*a*c*e^2+b^2*e^2)^(1/2)*ln((2*(e*x+d+1)*c+b*e-2*c*d+(- 
4*a*c*e^2+b^2*e^2)^(1/2)-2*c)/(b*e-2*c*d+(-4*a*c*e^2+b^2*e^2)^(1/2)-2*c))+ 
1/2*e/(-4*a*c*e^2+b^2*e^2)^(1/2)*dilog((-2*(e*x+d+1)*c-b*e+2*c*d+(-4*a*c*e 
^2+b^2*e^2)^(1/2)+2*c)/(-b*e+2*c*d+2*c+(-4*a*c*e^2+b^2*e^2)^(1/2)))-1/2*e/ 
(-4*a*c*e^2+b^2*e^2)^(1/2)*dilog((2*(e*x+d+1)*c+b*e-2*c*d+(-4*a*c*e^2+b^2* 
e^2)^(1/2)-2*c)/(b*e-2*c*d+(-4*a*c*e^2+b^2*e^2)^(1/2)-2*c))
 
3.1.61.5 Fricas [F]

\[ \int \frac {\text {arctanh}(d+e x)}{a+b x+c x^2} \, dx=\int { \frac {\operatorname {artanh}\left (e x + d\right )}{c x^{2} + b x + a} \,d x } \]

input
integrate(arctanh(e*x+d)/(c*x^2+b*x+a),x, algorithm="fricas")
 
output
integral(arctanh(e*x + d)/(c*x^2 + b*x + a), x)
 
3.1.61.6 Sympy [F(-1)]

Timed out. \[ \int \frac {\text {arctanh}(d+e x)}{a+b x+c x^2} \, dx=\text {Timed out} \]

input
integrate(atanh(e*x+d)/(c*x**2+b*x+a),x)
 
output
Timed out
 
3.1.61.7 Maxima [F(-2)]

Exception generated. \[ \int \frac {\text {arctanh}(d+e x)}{a+b x+c x^2} \, dx=\text {Exception raised: ValueError} \]

input
integrate(arctanh(e*x+d)/(c*x^2+b*x+a),x, algorithm="maxima")
 
output
Exception raised: ValueError >> Computation failed since Maxima requested 
additional constraints; using the 'assume' command before evaluation *may* 
 help (example of legal syntax is 'assume(4*a*c-b^2>0)', see `assume?` for 
 more deta
 
3.1.61.8 Giac [F]

\[ \int \frac {\text {arctanh}(d+e x)}{a+b x+c x^2} \, dx=\int { \frac {\operatorname {artanh}\left (e x + d\right )}{c x^{2} + b x + a} \,d x } \]

input
integrate(arctanh(e*x+d)/(c*x^2+b*x+a),x, algorithm="giac")
 
output
integrate(arctanh(e*x + d)/(c*x^2 + b*x + a), x)
 
3.1.61.9 Mupad [F(-1)]

Timed out. \[ \int \frac {\text {arctanh}(d+e x)}{a+b x+c x^2} \, dx=\int \frac {\mathrm {atanh}\left (d+e\,x\right )}{c\,x^2+b\,x+a} \,d x \]

input
int(atanh(d + e*x)/(a + b*x + c*x^2),x)
 
output
int(atanh(d + e*x)/(a + b*x + c*x^2), x)